//
//  FindDetailModel.m
//  Btpin
//
//  Created by Vic on 2020/1/2.
//  Copyright © 2020 Vic. All rights reserved.
//

#import "FindDetailModel.h"

@implementation FindDetailModel

- (void)setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> *)keyedValues {
    self.id = [UIToolsControl dataAnalysis:keyedValues[@"id"]];
    self.title = [UIToolsControl dataAnalysis:keyedValues[@"title"]];
    self.content = [UIToolsControl dataAnalysis:keyedValues[@"content"]];
    self.add_time = [UIToolsControl dataAnalysis:keyedValues[@"add_time"]];
    self.add_timeShow = @"";
    if (self.add_time && self.add_time.length) {
        self.add_timeShow = [UIToolsControl timestampConversionTime:([self.add_time integerValue]) andFormat:@"yyyy-MM-dd HH:mm"];
    }
    self.typeID = [UIToolsControl dataAnalysis:keyedValues[@"typeid"]];
    self.click = [UIToolsControl dataAnalysis:keyedValues[@"click"]];
    self.interview_index = [UIToolsControl dataAnalysis:keyedValues[@"interview_index"]];
    self.company_id = [UIToolsControl dataAnalysis:keyedValues[@"company_id"]];
    self.company_name = [UIToolsControl dataAnalysis:keyedValues[@"company_name"]];
    self.company_logo = [UIToolsControl dataAnalysis:keyedValues[@"company_logo"]];
    self.nature_cn = [UIToolsControl dataAnalysis:keyedValues[@"nature_cn"]];
    self.finance_cn = [UIToolsControl dataAnalysis:keyedValues[@"finance_cn"]];
    self.trade_cn = [UIToolsControl dataAnalysis:keyedValues[@"trade_cn"]];
    self.district_cn = [UIToolsControl dataAnalysis:keyedValues[@"district_cn"]];
    self.scale_cn = [UIToolsControl dataAnalysis:keyedValues[@"scale_cn"]];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

- (id)copyWithZone:(NSZone *)zone {
    FindDetailModel *model = [[[self class] allocWithZone:zone] init];
    model.id = self.id;
    model.title = self.title;
    model.content = self.content;
    model.add_time = self.add_time;
    model.add_timeShow = self.add_timeShow;
    model.typeID = self.typeID;
    model.click = self.click;
    model.interview_index = self.interview_index;
    model.company_id = self.company_id;
    model.company_name = self.company_name;
    model.company_logo = self.company_logo;
    model.nature_cn = self.nature_cn;
    model.finance_cn = self.finance_cn;
    model.trade_cn = self.trade_cn;
    model.district_cn = self.district_cn;
    model.scale_cn = self.scale_cn;
    
    return model;
}

@end
